<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
         <button onclick="stop()">查看浏览器信息</button>
    <script>
      function stop(){
         var newW2;
         var time = setTimeout(function(){
            newW2=window.open("navigator.html","浏览器","height=450px,width=450px","<h1>浏览器信息</h1>");
         },3000)
        //    function newW(){
        //        setTimeout(
        //          function newWin1(){
        //             newW2=window.open("navigator.html","浏览器","height=450px,width=450px");
        //          },3000 );


                 var closeW =setTimeout(function(){newW2.close();
              
                    location.href = "navigator.html";
                 },8000)

                //  setTimeout(
                //      function closeW(){
                //          if(newW2 && !newW2.close){
                //             newW2.close();
                //          }
                //          location.href = "navigator.html";
                //      },8000) ;
           }
        //    newW();
       
       
    </script>
</body>
</html>